package com.chinaunicom.test;

/**
 * @author liry
 * @version 1.0
 * @date Created on 2021/12/5 19:45
 * Description:
 */
public class User {

	private int id;

	private String name;

	private String beanName;

	public User(){
		System.out.println("User 被实例化");
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		System.out.println("设置："+name);
		this.name = name;
	}

	public String getBeanName() {
		return beanName;
	}

	public void setBeanName(String beanName) {
		this.beanName = beanName;
	}
	/**
	 * 自定义的初始化方法
	 */
	public void start(){
		System.out.println("User 中自定义的初始化方法");
	}

	public String show(){
		System.out.println("user  print info");
		return "excute success";
	}
}
